package cn.lsc.feign;

import cn.lsc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@FeignClient(value = "service-common",fallbackFactory = CommonFallbackFactory.class)
public interface commonFeign {
    @RequestMapping(value = "/messageSms/findByphone/{phone}",method = RequestMethod.GET)
    JSONResult findByphone(@PathVariable("phone")String phone);
}
